<template>
  <div class="container">
    <h1>TestOne</h1>
  </div>
</template>

<script>
import {getData} from '@/services/request';
import {onMounted} from "vue";


export default {
  name: 'TestOne',
  components: {},
  setup() {
    onMounted(() => {
      console.log("这里是onMounted方法")
      getData('白羊座', 'today')
          .then(
              (data) => {
                console.log(data)
              }
          )
          .catch(
              (reason) => {
                console.log(reason)
              }
          );
    });
  }
}
</script>

<style lang="scss" scoped>

</style>